package com.mingqijia.gassafety.job.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mingqijia.gassafety.db.entity.Consumer;
import com.mingqijia.gassafety.job.request.ConsumerBindingRequest;
import com.mingqijia.gassafety.job.request.ConsumerListRequest;
import com.mingqijia.gassafety.job.response.ConsumerResponse;
import com.mingqijia.gassafety.job.response.VccUserRseponse;
import com.mingqijia.gassafety.shared.utils.commonUtils.PageUtil;

import java.util.Map;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author wanghai
 * @since 2022-02-22
 */
public interface ConsumerService extends IService<Consumer> {

    void bindingEquipment(ConsumerBindingRequest request);

    /**
     * 客户导出, 增加一种选中导出的情况
     * @param request
     * @return
     */
    PageUtil<ConsumerResponse> consumerList(ConsumerListRequest request);

    //根据设备获取设备及客户信息
    Map<String, Object> getInfoByImei(String iMEI, String spId);

    /**
     * 将客户状态变更为正常
     * @param subsCode
     */
    void updateStatusByCode(String subsCode);

    /**
     * 根据户号查询户表信息
     * @param subsCode
     * @return
     */
    VccUserRseponse getVccUser(String subsCode,String spId,String  orgCode);

    /**
     * 获取客户关联的spid
     * @param consumerId
     * @param originSpId
     * @return
     */
    String getConsumerRelateSpId(Integer consumerId, String originSpId);
}
